/*
 *  SoundEngine.cpp
 *  GLRender
 *
 *  Created by Fabio Rambone on 5/25/11.
 *  Copyright 2011 USI. All rights reserved.
 *
 */


#include "SoundEngine.h"

SoundEngine* SoundEngine::getInstance(){
	static SoundEngine theInstace;
	return &theInstace;
}

SoundEngine::SoundEngine() : music("../../sounds/NintendoGameBoy.mp3"), isEnabled(true){
}

void SoundEngine::toggleSound(){
	isEnabled = !isEnabled;
}

void SoundEngine::startMusic(){
	if(isEnabled)
		music.play();
		
}

void SoundEngine::stopMusic(){
	music.stop();
}